import { Button, DatePicker } from 'antd-mobile'
import { useState } from 'react'
import styles from './index.module.scss'

export default function Test() {
  const [pickerShow, setPickerShow] = useState(false)

  return (
    <div className={styles.root}>
      <Button onClick={() => setPickerShow(true)}> 点</Button>
      <DatePicker
        visible={pickerShow}
        max={new Date()}
        value={new Date()}
        min={new Date('1900-1-1')}
      ></DatePicker>
    </div>
  )
}
